"""
a = 1
b = 1

print('1*1=1')

for a in range(1, 9):
    a = a + 1
    for b in range(1, a+1):
        if (a < b):
            print(f'{a}*{b}={a * b}', end='\t')
        else:
            print(f'{b}*{a}={a * b}', end='\t')
        b = b + 1
        if (b == a+1):
            print()

"""
# print()默认结束符就是\n
for a in range(1, 10):
    for b in range(1, a + 1):
        print(f'{b}*{a}={a * b}', end='\t')
    print()
